package scm

import "os/exec"

type svnConnector connector

func (this *svnConnector) init() (cmd *exec.Cmd) {
	cmd = exec.Command("svn", "checkout", this.url)
	cmd.Dir = this.dir
	return
}

func (this *svnConnector) update() (error, bool) {
	cmd := exec.Command("svn", "update")
	cmd.Dir = this.dir
	return cmd.Run(), true
}

func (this *svnConnector) workingDir() string {
	return this.dir
}
